package com.boot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigBeanController {
    @Autowired
    private ConfigBean configBean;
    @RequestMapping("/configbean")
    public String config(){
        // 输出所有字段的值
        return  configBean.toString();
    }
}
